class Solution:
    def isSubsequence(self, s, t):
        """
        :type s: str
        :type t: str
        :rtype: bool
        """
        idx = 0
        for c in s:
            idx =  t.find(c,idx)
            if idx==-1:
                return False
            idx+=1
        return True